package com.example.demo.bean;

import java.util.Collections;
import java.util.Set;
import java.util.TreeSet;

public class WordList {


    public static void main(String[] args) {
        args = new String[]{"a", "c", "b"};
        Set<String> set = new TreeSet<>();
        Collections.addAll(set, args);
        System.out.println(set);


        Integer num1 = 2;
        Integer num2 = 1;
        int i = num1.compareTo(num2);
        System.out.println(i);

        String s1 = "a";
        String s2 = "a";
        System.out.println(s1.compareTo(s2));
    }
}
